import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './styles/element-variables.less'

import '@/styles/index.less' // global css

import App from './App.vue'
import store from './store'
import router from './router'
import VuePreview from 'vue-preview'
import './icons' // icon
import './permission' // permission control

Vue.use(Element, {
  size: 'medium'
  // size: Cookies.get('size') || 'medium'// set element-ui default size
})
Vue.use(VuePreview, {
  shareEl: false
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
